package com.limanyik.family.common.entity.server.base.dto;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * 手机短信Dto
 */
@Data
public class MobilePhoneMessageDto<T> {

    /**
     * 响应code
     */
    private String code;
    /**
     * 业务ID
     */
    private String businessId;
    /**
     * 请求时间
     */
    private LocalDateTime requestTime;
    /**
     * 响应时间
     */
    private LocalDateTime responseTime;
    /**
     * 消息主体
     */
    private String message;
    /**
     * 请求ID
     */
    private String requestId;

    /**
     * 操作人
     */
    private String operator;

    /**
     * 操作时间
     */
    private String operatorId;

    /**
     * 请求内容
     */
    private T requestBody;

    public MobilePhoneMessageDto setCode(String code) {
        this.code = code;
        return this;
    }

    public MobilePhoneMessageDto setBusinessId(String businessId) {
        this.businessId = businessId;
        return this;
    }

    public MobilePhoneMessageDto setRequestTime(LocalDateTime requestTime) {
        this.requestTime = requestTime;
        return this;
    }

    public MobilePhoneMessageDto setResponseTime(LocalDateTime responseTime) {
        this.responseTime = responseTime;
        return this;
    }

    public MobilePhoneMessageDto setMessage(String message) {
        this.message = message;
        return this;
    }

    public MobilePhoneMessageDto setRequestId(String requestId) {
        this.requestId = requestId;
        return this;
    }

    public MobilePhoneMessageDto setOperator(String operator) {
        this.operator = operator;
        return this;
    }

    public MobilePhoneMessageDto setOperatorId(String operatorId) {
        this.operatorId = operatorId;
        return this;
    }

    public MobilePhoneMessageDto setRequestBody(T requestBody) {
        this.requestBody = requestBody;
        return this;
    }
}
